package com.yuba.front.domain.bo;

import com.yuba.common.core.validate.AddGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PostsPushBo implements Serializable {

    /**
     * 文章id
     */
    private Long postsId;

    private Long categoryId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class})
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class})
    private String content;
    /**
     * 封面图片id
     */
    private Long cover;

    /**
     * 发布状态
     */
    @NotBlank(message = "发布状态不能为空", groups = {AddGroup.class})
    private String releaseFlag;

    /**
     * 标签id
     */
    private List<String> tags;

    private String imageUrl;

    /**
     * 描述
     */
    private String remark;
}
